package com.haizhi.vp.mapper;

import com.haizhi.vp.entity.EmergencyResponseInfo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.Map;

/**
 * <p>
 * 应急响应情况 Mapper 接口
 * </p>
 *
 * @author fc
 * @since 2022-10-15
 */
@Mapper
public interface EmergencyResponseInfoMapper extends BaseMapper<EmergencyResponseInfo> {

    @Select("select sum(team) as team ,SUM(person) as person  from emergency_response_info where create_date =#{date}")
    Map<String, Double> getCount(String date);
}
